package com.htao.train.member.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author： HTTT
 * @Date： 2023/12/22 14:34
 * @Describe：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MemberLoginReq {
    @NotBlank(message = "[手机号]不能为空")
    @Pattern(regexp = "^1\\d{10}$",message = "手机号码格式错误")
    private String mobile;

    @NotBlank(message = "[验证码]不能为空")
    @Size(min = 4,max = 4,message = "验证码格式错误")
    private String code;
}
